<script setup lang="ts">
import { useRouter } from 'nuxt/app'
const router =useRouter()
const demo = () => {
    router.push("/")
}
</script>

<template>
    <div>
        <UButton class="cursor-pointer" @click="demo">退出登录</UButton>welocme
    </div>
</template>